package it.mp.multitask.preference;

import android.content.Context;
import android.preference.EditTextPreference;
import android.util.AttributeSet;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;

public class NumberBoxPreference extends EditTextPreference{
	public NumberBoxPreference(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	protected void onAddEditTextToDialogView(View dialogView, EditText editText) {
		editText.setInputType(EditorInfo.TYPE_CLASS_NUMBER);
		super.onAddEditTextToDialogView(dialogView, editText);
	}

}

